﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Spore.Validator
{
    /// <summary>
    /// 验证器基类
    /// </summary>
  public  class ValidatorBase:IValidator
    {

        /// <summary>
        /// 获取或设置错误信息
        /// </summary>
        public string ErrorMessage
        {
            get;
            set;
        }

        public ValidatorBase()
        {
 
        }

        public ValidatorBase(string msgError)
        {
            this.ErrorMessage = msgError;
        }

        #region IValidator 成员

        public virtual  bool IsValid(System.Windows.Forms.Control controlToValid)
        {
            return true;
        }

        #endregion
    }
}
